//
//  HSYBaseNavigationController+CardAnimation.m
//  高仿暴走斗图
//
//  Created by key on 16/4/19.
//  Copyright © 2016年 huangsongyao. All rights reserved.
//

#import "HSYBaseNavigationController+CardAnimation.h"
#import "HSYBaseNavigationController+Animation.h"

@implementation HSYBaseNavigationController (CardAnimation)

- (void)cardAnimationDidEndingForLocation:(CGFloat)location withCompletion:(void(^)(BOOL finished))completion {
    
    @weakify(self);
    [self pop_CardAnimationWithDuration:TIMEINTERVAL options:UIViewAnimationOptionCurveEaseInOut animations:^{
        
        @strongify(self);
        [self cardViewWithX:location withBlackMask:self.blackMask startBackViewX:self.startBackViewX lastScreenShotView:self.lastScreenShotView];
        
    } completion:^(BOOL finished) {
        
        completion(finished);
    }];
}


@end
